<head>
    <script type="text/javascript">
        function message(texte) {
            document.getElementById("res").value = texte;
        }
    </script>
</head> <body>
    <p>
        <img src="StarCraft_II_-_Box_Art.jpg" alt="image cliquable"
             onclick="message('Vous avez cliqué');"
             onmouseover="message('vous passez') ;"
             onmouseout="message('vous repartez');" />
    </p>
    <form name="evt">
        <input type="text" id="res">
    </form> </body>